package com.artron.mediaartron.data.entity;

import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Generated;
import org.greenrobot.greendao.annotation.Id;

/**
 * Class description here
 *
 * @author doing
 * @version 1.0.0
 * @since 2017-10-11.
 */
@Entity
public class User {


    @Id
    private Long id;

    private String passId;
    private String uid;
    private String loginname;
    private String nickname;
    private String mobile;
    private String email;
    private String sex;
    private String birthday;
    private String signature;
    private String registerTime;
    private String memberLevel;
    private String lastloginTime;
    private String loginPlatform;
    private int errloginTimes;
    private String isDisabled;
    private String provinceCode;
    private String cityCode;
    private String countyCode;
    private String provinceName;
    private String cityName;
    private String countyName;
    private String utoken;
    private String coupon;
    private int isSetPwd;
    private String photoThumbUrl;
    private String photoUrl;

    public User(LoginData data) {
        this(data.getUid(), data.getPassId(), data.getLoginname(), data.getNickname(), data.getMobile(),
                data.getEmail(), data.getSex(), data.getBirthday(), data.getSignature(), data.getRegisterTime(),
                data.getMemberLevel(), data.getLastloginTime(), data.getLoginPlatform(), data.getErrloginTimes(),
                data.getIsDisabled(), data.getProvinceCode(), data.getCityCode(), data.getCountyCode(),
                data.getProvinceName(), data.getCityName(), data.getCountyName(), data.getUtoken(), data.getCoupon(),
                data.getIsSetPwd(), data.getPhotoThumbUrl(), data.getPhotoUrl());
    }

    private User(String uid, String passId, String loginname, String nickname, String mobile,
                 String email, String sex, String birthday, String signature, String registerTime,
                 String memberLevel, String lastloginTime, String loginPlatform, int errloginTimes,
                 String isDisabled, String provinceCode, String cityCode, String countyCode, String provinceName,
                 String cityName, String countyName, String utoken, String coupon, int isSetPwd, String photoThumbUrl,
                 String photoUrl) {
        this(null, passId, uid, loginname, nickname, mobile, email, sex, birthday, signature, registerTime, memberLevel,
                lastloginTime, loginPlatform, errloginTimes, isDisabled, provinceCode, cityCode, countyCode, provinceName,
                cityName, countyName, utoken, coupon, isSetPwd, photoThumbUrl, photoUrl);
    }

    @Generated(hash = 1031702027)
    public User(Long id, String passId, String uid, String loginname, String nickname, String mobile, String email, String sex,
                String birthday, String signature, String registerTime, String memberLevel, String lastloginTime, String loginPlatform,
                int errloginTimes, String isDisabled, String provinceCode, String cityCode, String countyCode, String provinceName,
                String cityName, String countyName, String utoken, String coupon, int isSetPwd, String photoThumbUrl, String photoUrl) {
        this.id = id;
        this.passId = passId;
        this.uid = uid;
        this.loginname = loginname;
        this.nickname = nickname;
        this.mobile = mobile;
        this.email = email;
        this.sex = sex;
        this.birthday = birthday;
        this.signature = signature;
        this.registerTime = registerTime;
        this.memberLevel = memberLevel;
        this.lastloginTime = lastloginTime;
        this.loginPlatform = loginPlatform;
        this.errloginTimes = errloginTimes;
        this.isDisabled = isDisabled;
        this.provinceCode = provinceCode;
        this.cityCode = cityCode;
        this.countyCode = countyCode;
        this.provinceName = provinceName;
        this.cityName = cityName;
        this.countyName = countyName;
        this.utoken = utoken;
        this.coupon = coupon;
        this.isSetPwd = isSetPwd;
        this.photoThumbUrl = photoThumbUrl;
        this.photoUrl = photoUrl;
    }

    @Generated(hash = 586692638)
    public User() {
    }

    public String getUid() {
        return uid;
    }

    public String getPassId() {
        return passId;
    }

    public String getLoginname() {
        return loginname;
    }

    public String getNickname() {
        return nickname;
    }

    public String getMobile() {
        return mobile;
    }

    public String getEmail() {
        return email;
    }

    public String getSex() {
        return sex;
    }

    public String getBirthday() {
        return birthday;
    }

    public String getSignature() {
        return signature;
    }

    public String getRegisterTime() {
        return registerTime;
    }

    public String getMemberLevel() {
        return memberLevel;
    }

    public String getLastloginTime() {
        return lastloginTime;
    }

    public String getLoginPlatform() {
        return loginPlatform;
    }

    public int getErrloginTimes() {
        return errloginTimes;
    }

    public String getIsDisabled() {
        return isDisabled;
    }

    public String getProvinceCode() {
        return provinceCode;
    }

    public String getCityCode() {
        return cityCode;
    }

    public String getCountyCode() {
        return countyCode;
    }

    public String getProvinceName() {
        return provinceName;
    }

    public String getCityName() {
        return cityName;
    }

    public String getCountyName() {
        return countyName;
    }

    public String getUtoken() {
        return utoken;
    }

    public String getCoupon() {
        return coupon;
    }

    public int getIsSetPwd() {
        return isSetPwd;
    }

    public String getPhotoThumbUrl() {
        return photoThumbUrl;
    }

    public String getPhotoUrl() {
        return photoUrl;
    }

    public Long getId() {
        return this.id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public void setPassId(String passId) {
        this.passId = passId;
    }

    public void setUid(String uid) {
        this.uid = uid;
    }

    public void setLoginname(String loginname) {
        this.loginname = loginname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public void setBirthday(String birthday) {
        this.birthday = birthday;
    }

    public void setSignature(String signature) {
        this.signature = signature;
    }

    public void setRegisterTime(String registerTime) {
        this.registerTime = registerTime;
    }

    public void setMemberLevel(String memberLevel) {
        this.memberLevel = memberLevel;
    }

    public void setLastloginTime(String lastloginTime) {
        this.lastloginTime = lastloginTime;
    }

    public void setLoginPlatform(String loginPlatform) {
        this.loginPlatform = loginPlatform;
    }

    public void setErrloginTimes(int errloginTimes) {
        this.errloginTimes = errloginTimes;
    }

    public void setIsDisabled(String isDisabled) {
        this.isDisabled = isDisabled;
    }

    public void setProvinceCode(String provinceCode) {
        this.provinceCode = provinceCode;
    }

    public void setCityCode(String cityCode) {
        this.cityCode = cityCode;
    }

    public void setCountyCode(String countyCode) {
        this.countyCode = countyCode;
    }

    public void setProvinceName(String provinceName) {
        this.provinceName = provinceName;
    }

    public void setCityName(String cityName) {
        this.cityName = cityName;
    }

    public void setCountyName(String countyName) {
        this.countyName = countyName;
    }

    public void setUtoken(String utoken) {
        this.utoken = utoken;
    }

    public void setCoupon(String coupon) {
        this.coupon = coupon;
    }

    public void setIsSetPwd(int isSetPwd) {
        this.isSetPwd = isSetPwd;
    }

    public void setPhotoThumbUrl(String photoThumbUrl) {
        this.photoThumbUrl = photoThumbUrl;
    }

    public void setPhotoUrl(String photoUrl) {
        this.photoUrl = photoUrl;
    }

    public void update(LoginData data) {
        this.passId = data.getPassId();
        this.uid = data.getUid();
        this.loginname = data.getLoginname();
        this.nickname = data.getNickname();
        this.mobile = data.getMobile();
        this.email = data.getEmail();
        this.sex = data.getSex();
        this.birthday = data.getBirthday();
        this.signature = data.getSignature();
        this.registerTime = data.getRegisterTime();
        this.memberLevel = data.getMemberLevel();
        this.lastloginTime = data.getLastloginTime();
        this.loginPlatform = data.getLoginPlatform();
        this.errloginTimes = data.getErrloginTimes();
        this.isDisabled = data.getIsDisabled();
        this.provinceCode = data.getProvinceCode();
        this.cityCode = data.getCityCode();
        this.countyCode = data.getCountyCode();
        this.provinceName = data.getProvinceName();
        this.cityName = data.getCityName();
        this.countyName = data.getCountyName();
        this.utoken = data.getUtoken();
        this.coupon = data.getCoupon();
        this.isSetPwd = data.getIsSetPwd();
        this.photoThumbUrl = data.getPhotoThumbUrl();
        this.photoUrl = data.getPhotoUrl();
    }
}
